package com.cj.dubbo;

import com.cj.dubbo.protocool.http.HttpServerHandler;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author chan
 * @dateTime 2022/9/28  14:10:16
 * 全局请求处理servlet
 */
public class DispatchServlet extends HttpServlet {

    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        new HttpServerHandler().service(req, resp);
    }
}
